package cn.leizp.springboot.server.netmanger.common.inter;

public class ResultData {
    public int code;
    public String message;
    public Object data = null;

    public ResultData(int code, String message){
        this.code = code;
        this.message = message;
    }

    public static ResultData ok(String message){
        return new ResultData(1, message);
    }
    public static ResultData NotOnline(){
        return new ResultData(101, "交换机不在线");
    }
    public static ResultData CommandError(){
        return new ResultData(102, "命令错误");
    }
}
